package com.generation.utils;

import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.serializer.SerializerFeature;

/**
 * @author mockingjay
 * @date 2023/4/5 - 16:57
 * 处理json
 */
public class JsonUtils {

    public static String convertObj2Json(Object obj){
        if(obj==null){
            return null;
        }
        return JSON.toJSONString(obj, SerializerFeature.DisableCircularReferenceDetect);
    }
}
